﻿initTopCategoryForm();

var form = aspnetForm;

function onChangeTopCategory(){
    changeTopCategory();
    featurePropertiesHtmlValue = "";
    tradeFeaturePropertiesHtmlValue = "";
    
}
function onChangeSecondCategory(){
    document.getElementById("wrong_category").style.display="none";
    changeSecondCategory();
    featurePropertiesHtmlValue = "";
    tradeFeaturePropertiesHtmlValue = "";
    if(form.leafCatFormKey.length > beginIndex){
    form.leafCatFormKey.disabled = false;
    }else{
    form.leafCatFormKey.disabled = true;
    
    }
}

function onChangeLeafCategory(){    
    featurePropertiesHtmlValue = "";
    tradeFeaturePropertiesHtmlValue = "";
    document.getElementById("wrong_category").style.display="none";
}
